{if isset($is_category)}
	{if isset($sub_categories)}
		{if isset($is_tag)}
			<h2 class="title_more_categories">{$text_more_categories}</h2>
		{else}
			<h2 class="title_related_categories">{$text_related_categories}</h2>
		{/if}
		<div id="related_categories">
			<ol>
			{foreach $sub_categories as $key=>$value}
				<li>
					<img src="{$value['icon']}" width="42" height="34" alt="{$value['tag']}" />
					<span class="text-link"><a href="{$control_tag}{$value['tag']}" title="{$value['name']}">{$value['name']}</a></span>
				</li>
			{/foreach}
			</ol>
		</div>		
	{/if}
	<h2 class="title_ads">{$text_advertisement}</h2>
	{include file="templates/ads/ads_responsive.tpl"}
{else}
	<h2 class="title_ads">{$text_advertisement}</h2>
	{include file="templates/ads/ads_responsive.tpl"}
{/if}